package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.reggie.domian.Dish;
import com.itheima.reggie.dto.DishDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import javax.websocket.server.PathParam;
import java.util.List;

/**
 * @author 何须浅碧深红色
 * @date 2022/9/13
 */
@Mapper
public interface DishMapper extends BaseMapper<Dish> {
    public List<DishDto> findByPage(@Param("page") IPage page, @Param("name") String name);
}
